﻿using System.Threading.Tasks;
using Jinjia.Approve.Model.Input;
using Jinjia.Approve.Model.VM;

namespace Jinjia.Approve.IRepository
{
    /// <summary>
    /// HelloWorld仓储接口
    /// </summary>
    public interface IHelloWorldRepository
    {
        /// <summary>
        /// 插入HelloWorld
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<HelloWorldVM> InsertMysqlHelloWorld(HelloWorldCreateInput input);
        
        /// <summary>
        /// 读取HelloWorld
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<HelloWorldVM> ReadMysqlHelloWorld(HelloWorldSearchInput input);
    }
}